<extend name="Common@Layout:hui-admin" />
<block name="title"><title>Administator管理后台</title></block>
<block name="style">
</block>

<block name="main">
	
	<div class="pd-20">
		<div class="cl pd-5 bg-1 bk-gray"> 
			<if condition="$role eq 'ROLE_SUPER_ADMIN'">
			<span class="l ml-20 mt-10 mb-10"> 
				<a href="javascript:;" class="btn btn-danger radius ajax-post confirm" target-form="mini-form" data-msg="确定批量删除？" data-url="{:U('orderadmin/del')}"><i class="Hui-iconfont"></i> 批量删除</a>  
			</span> 
			</if>
		</div>
		<php>
			$map['status'] = 1;
			$map['termid'] = F('Termdata')['id'];
			$map['cid'] = $lessoninfo['cid'];
			$map['lid'] = $lessoninfo['id'];
			$result = _get_list_data('/Ygcl/Orderadmin/lists/',$_GET,$map,D('YgclOrder'));
		</php>
		<form class="mini-form">
		<table class="table table-border table-bordered table-bg table-hover table-sort">
			<thead>
				<tr class="text-c">
					<th width="25"><input type="checkbox" name="" value=""></th>
					<th width="50">ID</th>
					<th>订单编号</th>
					<th>学生姓名</th>
					<th>电话</th>
					<th>家长姓名</th>
					<th>费用</th>
					<th width="120">操作</th>
				</tr>
			</thead>
			<tbody>
				<foreach name="result['data']['list']" item="vo">
				<tr class="text-c">
					<td><input type="checkbox" value="{$vo['id']}" name="ids[]"></td>
					<td>{$vo['id']}</td>
					<td class="text-l">{$vo['ddbh']}</td>
					<td>{$vo.stuname}</td>
					<td>{$vo.tel}</td>
					<td>{$vo.jzxm}</td>
					<td>{$vo.total}</td>
					<td class="f-14 td-manage">
            			<a style="text-decoration:none;display:none" class="ml-5 mini_del" data-url="{:U('orderadmin/del','ids='.$vo['id'])}" href="javascript:;" title="删除"><i class="Hui-iconfont"></i></a>
					</td>
				</tr>
				</foreach>
			</tbody>
		</table>
		</form>
		{$result['pagetpl']}
	</div>
	
	
</block>

<block name="script">
<script>
$(function(){
	$('.mini-time').datepicker();
});
</script>
</block>